package com.panopset.refactorsf;

/**
 *
 * @author Karl Dinwiddie
 *
 */
public abstract class ValidatingTextField extends ValidatingField<String> {

    private String value;
    /**
     *
     * @param name
     *            Name of field, used in alerts when not valid.
     */
    public ValidatingTextField(final String name) {
        super(name);
    }

    @Override
    public String getValue() throws Exception {
        return getTf().getText();
    }

    @Override
    public abstract boolean validate(String s);

    @Override
    public void save() {
        // TODO Auto-generated method stub
        
    }

}
